<?php
// $Id$
?>
<tr><td colspan="31" class="rowSpacing"></td></tr>
<tr id="row<?php print $rownumber; ?>" class="<?php print $evenodd; ?>"   title="<?php print $rejected_note; ?>" >
    <td style="display:none"><input type="text" size="2"  name="id<?php print $rownumber; ?>" id="id<?php print $rownumber; ?>" value="<?php print $id; ?>"></td>
    <td style="display:none"><input type="text" size="2"  name="uid<?php print $rownumber; ?>" id="uid<?php print $rownumber; ?>" value="<?php print $uid; ?>"></td>
    <td style="display:none"><input type="text" size="2"  name="datestamp<?php print $rownumber; ?>" id="datestamp<?php print $rownumber; ?>" value="<?php print $datestamp; ?>"></td>
    <td style="display:none"><input type="text" size="2"  name="isSecondaryRow<?php print $rownumber; ?>" id="isSecondaryRow<?php print $rownumber; ?>" value="0"></td>
    <td <?php print $rowspan_value?> id="rowspancolumn<?php print $rownumber; ?>">
        <table style="border-collapse:collapse" border="0" class="humanDateTable <?php print $day_colour; ?>">
        <tr>
            <td rowspan=2><span onclick="lockentries('<?php print $datestamp; ?>','<?php print $js_disable_on_lock; ?>','<?php print $uid; ?>');"><img id="lockimg<?php print $rownumber; ?>" src="<?php print $images_dir?>/<?php print $locked_or_not; ?>" title="<?php print $lock_this_entry; ?>"  style="<?php print $disabled_style; ?>"></span></td>
            <td><?php print $human_date_day?></td>
            <td rowspan="2" valign="middle"><span onclick="insertTask('<?php print $datestamp; ?>','<?php print $rownumber; ?>','<?php print $disable_on_lock; ?>');"><img src="<?php print $images_dir; ?>/add.png" title="<?php print $add_this_entry; ?>"  style="<?php print $disabled_style; ?>"></span></td>
        </tr>
        <tr>
            <td><?php print $human_date_formatted; ?></td>
        </tr>
        </table>
    </td>
    <td></td>
    <td class="entryRowLeftCell" style="<?php print $rejected_style; ?>"><input type="checkbox" name="chk<?php print $rownumber; ?>" id="chk<?php print $rownumber; ?>" <?php print $disable_on_lock; ?>></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>" id="activityTD">
        <select name="nextime_activity_id<?php print $rownumber; ?>" id="nextime_activity_id<?php print $rownumber; ?>" onchange="changeflag();selectProject(this.value,'<?php print $rownumber; ?>');selectTask(this.value,'<?php print $rownumber; ?>');" <?php print $disable_on_lock; ?> class="dropdown_menus">
            <?php print $nextime_activity_options; ?>
        </select>
    </td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>" id="projectTD<?php print $rownumber; ?>">
        <select name="project_id<?php print $rownumber; ?>" id="project_id<?php print $rownumber; ?>" onchange="changeflag()" <?php print $disable_on_lock; ?> class="dropdown_menus">
            <?php print $project_options; ?>
        </select>
    </td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>" id="taskTD<?php print $rownumber; ?>">
        <select name="task_id<?php print $rownumber; ?>" id="task_id<?php print $rownumber; ?>" onchange="changeflag()" <?php print $disable_on_lock; ?> class="dropdown_menus">
            <?php print $task_options; ?>
        </select>
    </td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);"  size="2"  name="regular_time<?php print $rownumber; ?>" value="<?php print $regular_time; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="time_1_5<?php print $rownumber; ?>" value="<?php print $time_1_5; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="time_2_0<?php print $rownumber; ?>" value="<?php print $time_2_0; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="evening_hours<?php print $rownumber; ?>" value="<?php print $evening_hours; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="stat_time<?php print $rownumber; ?>" value="<?php print $stat_time; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="vacation_time_used<?php print $rownumber; ?>" value="<?php print $vacation_time_used; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="floater<?php print $rownumber; ?>" value="<?php print $floater; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="sick_time<?php print $rownumber; ?>" value="<?php print $sick_time; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="bereavement<?php print $rownumber; ?>" value="<?php print $bereavement; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="jury_duty<?php print $rownumber; ?>" value="<?php print $jury_duty; ?>"></td>

    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="other<?php print $rownumber; ?>" value="<?php print $other; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text"  onchange="changeflag()" size="10" name="comment<?php print $rownumber; ?>" id="comment<?php print $rownumber; ?>" value="<?php print $comment; ?>" readonly onclick="commentPanel(this);"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" readonly size="2"  name="totalhrs<?php print $rownumber; ?>" value="<?php print $totalhrs; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" readonly size="2"  name="OThrs<?php print $rownumber; ?>" value="<?php print $othrs; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>"><input type="text" <?php print $disable_on_lock; ?> onchange="changeflag();roundVal(this);" size="2"  name="unpaid_hrs<?php print $rownumber; ?>" value="<?php print $unpaid_hrs; ?>"></td>

    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?><?php print $enable_on_lock; ?>"><input type="text" onchange="changeflag();roundVal(this);" size="2"  name="adjustment<?php print $rownumber; ?>" value="<?php print $adjustment; ?>" style="<?php print $enable_on_lock; ?>"></td>
    <td style="display:none"><input type="text" <?php print $disable_on_lock; ?> size="2"  name="rejected<?php print $rownumber; ?>" id="rejected<?php print $rownumber; ?>" value="<?php print $rejected; ?>"></td>
    <td style="display:none"><input type="text" <?php print $disable_on_lock; ?> size="2"  name="locked<?php print $rownumber; ?>" id="locked<?php print $rownumber; ?>" value="<?php print $locked; ?>"></td>
    <td style="display:none"><input type="text" <?php print $disable_on_lock; ?> size="2"  name="approved<?php print $rownumber; ?>" id="approved<?php print $rownumber; ?>" value="<?php print $approved; ?>"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>;display:<?php print $display_for_approval; ?>"><input type="checkbox" name="chkapproval<?php print $rownumber; ?>" id="chkapproval<?php print $rownumber; ?>" value="1" <?php print $chkapproval_checked; ?> onclick="doApprovalPageApprove('chkapproval<?php print $rownumber; ?>','chkreject<?php print $rownumber; ?>','<?php print $rownumber; ?>','<?php print $id; ?>');"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>;display:<?php print $display_for_approval; ?>"><input type="checkbox" name="chkreject<?php print $rownumber; ?>" id="chkreject<?php print $rownumber; ?>" value="1" <?php print $chkreject_checked; ?> onclick="doApprovalPageReject('chkapproval<?php print $rownumber; ?>','chkreject<?php print $rownumber; ?>','<?php print $rownumber; ?>','<?php print $id; ?>');"></td>
    <td class="entryRowMiddleCell" style="<?php print $rejected_style; ?>;display:<?php print $display_for_entry_rejection; ?>"><input type="button"  id="btnCheckReject<?php print $rownumber; ?>" value="Reason" onclick="showReason('<?php print $id; ?>')" style="font-size:7pt"><input type="button" id="btnClearReject<?php print $rownumber; ?>" value="Clear" onclick="clearReject('<?php print $id; ?>','<?php print $uid; ?>')" style="font-size:7pt"></td>

</tr>